import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 服务顾问 - 下拉框
export const getUserListSelect = params => axios.get(`/api/sysManage/basedata/users/getUserListByRole?role=10071011`, { params });

// 维修配件去向查询
export const queryWhereRepairPartToReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryWhereRepairPartToReport`, { params });

// 查询全部车系
export const getVehicleSeries = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/baseData/basicData/series`, { params });
// 获取车型
export const getselectModelList = params => axios.get(`${SERVER.DMS_WEB}/manage/rest/basedata/selectModel`, { params });

// 查询所有员工
export const getAllUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);

// 获取优惠模式
export const getqueryDiscountModeList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/discountmodes/queryDiscountMode`, { params });

// 指定技师
export const getChiefTechnician = params => axios.get(`/api/sysManage/basedata/users/getUserListByRole?role=10061012`);
